<?php

namespace Home\Controller;

use Think\Controller;

class PublicController extends Controller {

    Public function verify() {//PublicController.class.php
        $Verify = new \Think\Verify();
        $Verify->fontSize = 18;
        $Verify->length = 4;
        $Verify->useNoise = false;
        $Verify->codeSet = '0123456789';
        $Verify->imageW = 130;
        $Verify->imageH = 40;
        //$Verify->expire = 600;  
        $Verify->entry();
    }

    function check_verify($code, $id = "") {
        $verify = new \Think\Verify();
        return $verify->check($code, $id);
    }

}
